﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.IRepository.SystemSettings.CommonlyUsedSettings;
using SystemCenterSoa.PoModel.SystemSettings.CommonlyUsedSettings;

namespace SystemCenterSoa.Service.SystemSettings.CommonlyUsedSettings
{
     public  class DictionaryInstallService
    {

        private IDictionaryInstallRepository _idictionaryInstallRepository;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="IModuleRepository">注入的dal</param>
        /// <param name="mapper">注入automap</param>

        public DictionaryInstallService  (IDictionaryInstallRepository idictionaryInstallRepository)
        {
            _idictionaryInstallRepository = idictionaryInstallRepository;
        }


        public int DictionaryInstallAdd(DictionaryInstallPo info)
        {

            return _idictionaryInstallRepository.DictionaryInstallAdd(info); ;
        }

        public DictionaryInstallPo DictionaryInstallEdit(int id)
        {
            return _idictionaryInstallRepository.DictionaryInstallEdit(id);
        }

        public int DictionaryInstallUpdate(DictionaryInstallPo info)
        {
            return _idictionaryInstallRepository.DictionaryInstallUpdate(info);
        }

        public PagerResult<DictionaryInstallPo> SearchPage(SearchModel searchmodel)
        {
            return _idictionaryInstallRepository.SearchPage(searchmodel);
        }

        //获取下拉
        public List<DictionaryInstallPo> GetDropDown()
        {
            return _idictionaryInstallRepository.GetDropDown();
        }

        public int DictionaryInstallDelete(List<int> ids)
        {
            var data = _idictionaryInstallRepository.DictionaryInstallDelete(ids);
            return data;
        }
    }
}
